
package com.nbBoot.common.enums;

/**
 * 认证规则
 *
 * @author 王永吉
 * @date 2019/8/21
 */
public enum AuthType {

    //
    //↑↑↑↑↑↑↑↑ 其他写在上边 ↑↑↑↑↑↑↑↑↑↑
    PUBLIC(1, "公开方法，无需验证"),
    NEED_LOGIN(2, "需要登录"),
    NEED_CHECK(3, "需要检查权限"),
    NEED_ROLE(4, "需要检查是否包含指定权限");

    private final int value;
    private final String message;

    AuthType(final int value, final String message) {
        this.value = value;
        this.message = message;
    }

    public int value_() {
        return this.value;
    }

    public String message_() {
        return this.message;
    }
}
